package com.juku2024.juku.model;



import java.util.ArrayList;

public class PlayInfoResponse implements Comparable<PlayInfoResponse>{
    // 线路id
    public int id;
    public int weight;
    public ArrayList<EpisodesResponse> episodes;
    // 是否被选中
    public boolean isSelected;
    // 是否有下载
    public boolean hasDownloads;
    // 是否允许下载 1：允许，0：不允许
    public int down;
    // 是否是推荐线路
    public boolean isRecommend = false;

    @Override
    public int compareTo(PlayInfoResponse o) {
        if (episodes != null && o != null && o.episodes != null) {
            return episodes.size() - o.episodes.size();
        }
        return 0;
    }
}
